﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopupSearchAddress.aspx.cs" Inherits="MockPrjTeam2.Pages.Views.PopupSearchAddress1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" style="width: 100%">
  <tr>
      <td colspan="3" style="font-family: Arial, Helvetica, sans-serif; font-size: large; color: #639A18;
                font-weight: bold; width: 592px;">
                Search PostCode
      </td>      
  </tr>
  <tr>  
    <td colspan="3">
        ID:&nbsp&nbsp<asp:TextBox ID="txtAddressId" runat="server"></asp:TextBox>
    </td>     
  </tr>
  <tr>
    <td>
        PostCode:&nbsp&nbsp<asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox>
    </td>
    <td>
        Street:&nbsp&nbsp<asp:TextBox ID="txtStreet" runat="server"></asp:TextBox>
    </td>
    <td>
        Town:&nbsp&nbsp<asp:TextBox ID="txtTown" runat="server"></asp:TextBox>
    </td>
  </tr>
  <tr>
    <td colspan="3">        
        <asp:Button ID="btSearch" runat="server" Text="Search Address" 
            onclick="btSearch_Click" />&nbsp&nbsp
        <asp:Button ID="btNone" runat="server" Text="None" onclick="btNone_Click" />&nbsp&nbsp
        <asp:Button ID="btClear" runat="server" Text="Clear" />        
    </td>    
  </tr>
  <tr>
    <td colspan="3">         
        <asp:GridView ID="GVSearchAddress" runat="server" AutoGenerateColumns="False" 
            AllowPaging="True" onpageindexchanging="GVSearchAddress_PageIndexChanging" 
            onrowdatabound="GVSearchAddress_RowDataBound" 
            onselectedindexchanged="GVSearchAddress_SelectedIndexChanged" 
            CellPadding="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Select One">
                <ItemTemplate>
                    <input name="MyRadioButton" type="radio" 
                    value='<%# Eval("AddressId") %>' />                                                                      
                </ItemTemplate> 
                </asp:TemplateField> 
                <asp:BoundField DataField = "_Address" HeaderText="Address"  />                 
                <asp:BoundField DataField = "PostCode" HeaderText="PostCode" />
            <%--   <asp:BoundField DataField = "_Town.TownName" HeaderText="Town" />
              <asp:BoundField DataField = "_County.CountyName" HeaderText="County" />
                <asp:BoundField DataField = "_Country.CountryName" HeaderText="Country" />--%>
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>                      
    </td>
  </tr>
  <tr>        
    <td colspan="3">
        
        <asp:Button ID="btSelect" runat="server" Text="Select"
            onclick="btSelect_Click"  />&nbsp&nbsp        
        <asp:Button ID="btClose" runat="server" Text="Close" />
        
        <asp:HiddenField ID="hdnAddressId" runat="server" />
        
    </td>    
  </tr>    
 </table>
    </form>
</body>
</html>
